@extends('Admin.layouts.common')

@section('content')
        <div class="table-responsive">
            <table class="table">
                <caption>Redis配置列表</caption>
                <thead>
                    <tr>
                        <th><a href="javascript:void(0);">名称</a></th>
                        <th><a href="javascript:void(0);">参数值</a></th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @forelse($data as $item)
                        <tr>
                            <td>{{ $item['key'] }}</td>
                            <td>{{ $item['value']?'运行中':'暂挂' }}</td> 
                            <td>
                            <a href="/config/redis_config/{{ $item['key'] }}">停止</a>
                            </td>
                        </tr>
                    @empty
                        <tr><td class="text-center" colspan="5">没有数据</td></tr>
                    @endforelse
                </tbody>
            </table> 
        </div>
    </div>
@endsection

@section('foot') 
@endsection